package vo;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * Saleorder entity. @author MyEclipse Persistence Tools
 */

public class Saleorder implements java.io.Serializable {

	// Fields

	private Integer id;
	private Staff staff;
	private String saleOrderNo;
	@JSONField(format="yyyy/MM/dd")
	private Timestamp saleDateTime;
	private String total;
	private String paymentStatus;
	private Set payments = new HashSet(0);
	private Set saleorderitems = new HashSet(0);

	// Constructors

	/** default constructor */
	public Saleorder() {
	}

	/** minimal constructor */
	public Saleorder(Staff staff, String saleOrderNo, Timestamp saleDateTime,
			String total, String paymentStatus) {
		this.staff = staff;
		this.saleOrderNo = saleOrderNo;
		this.saleDateTime = saleDateTime;
		this.total = total;
		this.paymentStatus = paymentStatus;
	}

	/** full constructor */
	public Saleorder(Staff staff, String saleOrderNo, Timestamp saleDateTime,
			String total, String paymentStatus, Set payments, Set saleorderitems) {
		this.staff = staff;
		this.saleOrderNo = saleOrderNo;
		this.saleDateTime = saleDateTime;
		this.total = total;
		this.paymentStatus = paymentStatus;
		this.payments = payments;
		this.saleorderitems = saleorderitems;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

	public String getSaleOrderNo() {
		return this.saleOrderNo;
	}

	public void setSaleOrderNo(String saleOrderNo) {
		this.saleOrderNo = saleOrderNo;
	}

	public Timestamp getSaleDateTime() {
		return this.saleDateTime;
	}

	public void setSaleDateTime(Timestamp saleDateTime) {
		this.saleDateTime = saleDateTime;
	}

	public String getTotal() {
		return this.total;
	}

	public void setTotal(String total) {
		this.total = total;
	}

	public String getPaymentStatus() {
		return this.paymentStatus;
	}

	public void setPaymentStatus(String paymentStatus) {
		this.paymentStatus = paymentStatus;
	}

	public Set getPayments() {
		return this.payments;
	}

	public void setPayments(Set payments) {
		this.payments = payments;
	}

	public Set getSaleorderitems() {
		return this.saleorderitems;
	}

	public void setSaleorderitems(Set saleorderitems) {
		this.saleorderitems = saleorderitems;
	}

}